//
//  SourseWebViewController.swift
//  微博
//
//  Created by mac on 15/12/27.
//  Copyright © 2015年 mac. All rights reserved.
//

import UIKit

class SourseWebViewController: UIViewController {
    
    var urlStr:String?
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        //加载数据
        loadWebView()
        
    }
    private func loadWebView() {
        let url = NSURL(string: urlStr ?? "")
        let request = NSURLRequest(URL: url!)
        webView.loadRequest(request)
    }
    
    override func loadView() {
        view = webView
    }
    private lazy var webView = UIWebView()
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
